import { v4 } from "uuid";
import request from "../utils/request"



export const login = async (obj) => {
    return request({
        url: "api/login/logins",
        method: "post",
        data: obj

    });
}

//检查用户是否登录
export const check_login = (obj) => {
    return request({
        url: "api/login/Check_Login",
        method: "get",
        params: obj
        ////参数要注意的点 get:params post:data   
    })
}

//获取登录历史
export const get_history = (obj) => {
    return request({
        url: "api/login/Get_History",
        method: "get",
        params: obj
        ////参数要注意的点 get:params post:data   
    })
}